Create a new folder called "crt" in xampp/apache and paste this two files.

Enter localhost as Domain name. 


After generating move the certificate files to original certificate path and delete the "crt" folder.

Install Server Certificate 
Select PLace all certificate in the following store and select trusted root certificate authentication 

Done 



